import java.util.Scanner;

public class Main {
    public static void main(String[] args) {

//        Scanner scanner = new Scanner(System.in);
//        int n = scanner.nextInt();
//        int sum = 0;
//        int result = 1;
//        for(int i=1;i<=n;i++){
//            result *= i;
//            sum += result;
//        }
//        System.out.println(sum);

//        Scanner scanner = new Scanner(System.in);
//        int n = scanner.nextInt();
//        int m = fac(n);
//        System.out.println(m);

//        Scanner scanner = new Scanner(System.in);
//        int n = scanner.nextInt();
//        int m = fib(n);
//        System.out.println(m);

//        int n = max(4,2);
//        double m = max(2.3,5.6,1.2);
//        System.out.println(n);
//        System.out.println(m);

        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
//        print(n);
        fac3(n);

    }

    public static void fac3(int n){
        if(n >9){
            fac3(n/10);
        }
        else{
            System.out.println(n+" ");
        }
    }
    public static int add(int n) {
        if(n > 9) {
            return add(n/10)+n%10;
        }
        return n;
    }

    public static void print(int n) {
        if(n <= 9)
            System.out.print(n%10+" ");
        else{
            print(n/10);
            System.out.print(n%10+" ");
        }

    }


    public static int fac2(int n){
        if( n == 1)
            return 1;
        else
            return n + fac2(n-1);
    }

    public static int fac1(int n){
        if( n == 1)
            return 1;
        else
            return n * fac1(n-1);
    }

    public static int max(int a, int b){
        return Math.max(a,b);
    }

    public static double max(double a, double b, double c){
        return Math.max(Math.max(a,b),c);
    }
    public static int fac(int n){
        if( n == 1 || n == 2)
            return 1;
        else
            return fac(n-1) + fac(n-2);
    }

    public static int fib(int n) {
        if( n == 1 || n == 2)
            return 1;
        else{
            int f1 = 1;
            int f2 = 1;
            int f3 = 0;
            for(int i=3;i<=n;i++){
                f3 = f1 + f2;
                f1 = f2;
                f2 = f3;
            }
            return f3;
        }
    }
}